import request from '@/utils/request'

// 查询报考层次信息列表
export function listExamLevel(query) {
  return request({
    url: '/chengkao/examLevel/list',
    method: 'get',
    params: query
  })
}

// 查询报考层次信息详细
export function getExamLevel(id) {
  return request({
    url: '/chengkao/examLevel/' + id,
    method: 'get'
  })
}

// 新增报考层次信息
export function addExamLevel(data) {
  return request({
    url: '/chengkao/examLevel',
    method: 'post',
    data: data
  })
}

// 修改报考层次信息
export function updateExamLevel(data) {
  return request({
    url: '/chengkao/examLevel',
    method: 'put',
    data: data
  })
}

// 删除报考层次信息
export function delExamLevel(id) {
  return request({
    url: '/chengkao/examLevel/' + id,
    method: 'delete'
  })
}
